// 导入axios实例
import http from './request';




export const banner = (data={})=> {
    return http.get('https://apis.netstart.cn/xmsc/home/page',{params: data})
}
export const best = (data={})=> {
    return http.get('https://apis.netstart.cn/xmsc/home/page',{params: data})
}
export const classify = (data={})=> {
    return http.get('https://apis.netstart.cn/xmsc/home/category_v2',{params: data})
}

// 搜索热门接口
export const hotsearch = (data={})=> {
    return http.get('https://apis.netstart.cn/xmsc/hisearch/se_default',{params: data})
}
export const search = (data={})=> {
    return http.get('https://apis.netstart.cn/xmsc/hisearch/query_v3',{params: data})
}



// 商品分类接口
export const detail = (data={})=> {
    return http.get('https://apis.netstart.cn/xmsc/miproduct/view',{params: data})
}
// 商品详情接口
export const comments = (data={})=> {
    return http.get(`https://apis.netstart.cn/xmsc/product/all_product?cat_id=${data.category_id}`,{params: data})
}